/**
 * @file RegisterGatewayHandler.cs
 * @author Zane Mayo
 * @date 26/5/2009
 */

using System;

namespace MxitAPI {
	
	
	public class RegisterGatewayHandler : Handler {
		
		private static log4net.ILog log = log4net.LogManager.GetLogger( System.Reflection.MethodBase.GetCurrentMethod().DeclaringType );
		
		private string userName;
		private string password;
		private ContactType contactType;
		
		public RegisterGatewayHandler() : base( typeof( RegisterGatewayProtocolMessage ) )  {
		}
		
		public RegisterGatewayHandler( string userName, string password, ContactType contactType) : this()  {
			this.userName = userName;
			this.password = password;
			this.contactType = contactType;
		}
		
		public override ProtocolMessage CreateRequestProtocolMessage() {
			RegisterGatewayProtocolMessage protocolMessage = new RegisterGatewayProtocolMessage();
			
			protocolMessage.UserName = userName;
			protocolMessage.Password = password;
			protocolMessage.ContactType = contactType;
			
			return protocolMessage;
		}
		
		
	}
}